﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;
using System.Windows.Media;

namespace KTool2.Utility
{
    public class ImageManager
    {
        public static readonly BitmapImage BigLogo = new BitmapImage(new Uri("pack://application:,,,/Images/BigLogo.png"));
        public static readonly BitmapImage CloseButton = new BitmapImage(new Uri("pack://application:,,,/Images/CloseButton.gif"));
        public static readonly BitmapImage CloseButtonDeactivated = new BitmapImage(new Uri("pack://application:,,,/Images/CloseButtonDeactivated.gif"));
        public static readonly BitmapImage CloseButtonDown = new BitmapImage(new Uri("pack://application:,,,/Images/CloseButtonDown.gif"));
        public static readonly BitmapImage CloseButtonEnter = new BitmapImage(new Uri("pack://application:,,,/Images/CloseButtonEnter.gif"));
        public static readonly BitmapImage Dot = new BitmapImage(new Uri("pack://application:,,,/Images/Dot.png"));
        public static readonly BitmapImage FptLogo = new BitmapImage(new Uri("pack://application:,,,/Images/FptLogo.png"));
        public static readonly BitmapImage NextButton = new BitmapImage(new Uri("pack://application:,,,/Images/NextButton.png"));
        public static readonly BitmapImage NextButtonDown = new BitmapImage(new Uri("pack://application:,,,/Images/NextButtonDown.png"));
        public static readonly BitmapImage PreviousButton = new BitmapImage(new Uri("pack://application:,,,/Images/PreviousButton.png"));
        public static readonly BitmapImage PreviousButtonDown = new BitmapImage(new Uri("pack://application:,,,/Images/PreviousButtonDown.png"));
        public static readonly BitmapImage QuestionButton = new BitmapImage(new Uri("pack://application:,,,/Images/QuestionButton.png"));
        public static readonly BitmapImage QuestionButtonDeactivated = new BitmapImage(new Uri("pack://application:,,,/Images/QuestionButtonDeactivated.png"));
        public static readonly BitmapImage QuestionButtonDown = new BitmapImage(new Uri("pack://application:,,,/Images/QuestionButtonDown.png"));
        public static readonly BitmapImage QuestionButtonEnter = new BitmapImage(new Uri("pack://application:,,,/Images/QuestionButtonEnter.png"));
        public static readonly BitmapImage Rate = new BitmapImage(new Uri("pack://application:,,,/Images/Rate.png"));
        public static readonly BitmapImage SmallLogo = new BitmapImage(new Uri("pack://application:,,,/Images/SmallLogo.png"));
        public static readonly BitmapImage Star = new BitmapImage(new Uri("pack://application:,,,/Images/Star.png"));
        private static ImageBrush metalBackGround = null;
        private static ImageBrush metalBackGroundDeactivated = null;
        private static ImageBrush screen = null;
        private static ImageBrush screenDeactivated = null;
        private static ImageBrush statusBackground = null;
        private static ImageBrush statusBackgroundDeactivated = null;

        public static ImageBrush ScreenDeactivated
        {
            get
            {
                if (screenDeactivated == null)
                {
                    screenDeactivated = new ImageBrush();
                    screenDeactivated.ImageSource = new BitmapImage(new Uri("pack://application:,,,/Images/ScreenDeactivated.png"));
                }

                return ImageManager.screenDeactivated;
            }
        }

        public static ImageBrush StatusBackgroundDeactivated
        {
            get
            {
                if (statusBackgroundDeactivated == null)
                {
                    statusBackgroundDeactivated = new ImageBrush();
                    statusBackgroundDeactivated.ImageSource = new BitmapImage(new Uri("pack://application:,,,/Images/StatusBackgroundDeactivated.png"));
                }

                return ImageManager.statusBackgroundDeactivated;
            }
        }

        public static ImageBrush StatusBackground
        {
            get 
            {
                if (statusBackground == null)
                {
                    statusBackground = new ImageBrush();
                    statusBackground.ImageSource = new BitmapImage(new Uri("pack://application:,,,/Images/StatusBackground.png"));
                }

                return ImageManager.statusBackground; 
            }
        } 


        public static ImageBrush Screen
        {
            get 
            {
                if (screen == null)
                {
                    screen = new ImageBrush();
                    screen.ImageSource = new BitmapImage(new Uri("pack://application:,,,/Images/Screen.png"));
                }

                return ImageManager.screen; 
            }
        }

        public static ImageBrush MetalBackGroundDeactivated
        {
            get 
            {
                if (metalBackGroundDeactivated == null)
                {
                    metalBackGroundDeactivated = new ImageBrush();
                    metalBackGroundDeactivated.ImageSource = new BitmapImage(new Uri("pack://application:,,,/Images/MetalBackGroundDeactivated.png"));
                }
                return ImageManager.metalBackGroundDeactivated; 
            }
        }

        public static ImageBrush MetalBackGround
        {
            get 
            {
                if (metalBackGround == null)
                {
                    metalBackGround = new ImageBrush();
                    metalBackGround.ImageSource = new BitmapImage(new Uri("pack://application:,,,/Images/MetalBackGround.png"));
                }

                return ImageManager.metalBackGround; 
            }
        } 

    }
}
